Skip to content

feat(ENG-46): add the Meta AI Answer tool (0.2.0) - #10

Merged
rbatista191 merged 1 commit into
mainfrom
feature/eng-46-new-endpoint-meta-ai
Nov 29, 2026
Merged

rbatista191 merged 1 commit into
mainfrom
feature/eng-46-new-endpoint-meta-ai

Conversation

@rbatista191

Copy link
Copy Markdown
Contributor

Adds the Meta AI Answer tool on POST /v1/monitor/meta-ai (ENG-46). The endpoint is in cloro-dev/backend#600.

Changes

  • tools/meta_ai.py and tools/meta_ai.yaml (Prompt, Country). It uses the shared ask and answer_text helpers.
  • provider/cloro.yaml: the new tool and the description.
  • manifest.yaml: version 0.1.2 to 0.2.0 and the description. cloro_api.USER_AGENT is 0.2.0.
  • README: seven tools, the usage table (6 credits), the countries and the prompts that get no answer.
  • Test fixture tests/fixtures/meta-ai.json and meta-ai in the answer tool test.

The test fixture is a shortened copy of the example response in cloro-dev/docs#324. It is not a recorded API response. No live call was made, because the endpoint is not deployed.

Checks

  • uv run --python 3.12 --with-requirements requirements.txt --with pytest pytest tests: 35 passed.
  • ruff check: pass.
  • Not run: dify plugin package . (the Dify CLI is not installed here). The package workflow builds the .difypkg on release.

Before merge

Do not merge before cloro-dev/backend#600 is deployed. A merge publishes the package, and the endpoint returns 404 until then. The docs page https://cloro.dev/docs/api-reference/endpoint/monitor-meta-ai returns 404 until cloro-dev/docs#324 merges.

After release

Open a new langgenius/dify-plugins PR with the 0.2.0 .difypkg.

https://claude.ai/code/session_01Vi9vyc4nPaECMgzccWiEMb

Add the meta_ai tool. It sends a prompt to POST /v1/monitor/meta-ai and
returns the answer and its sources, the same as the Bing AI Mode tool.
Add it to the provider, the plugin text and the README. Set the version
and the User-Agent to 0.2.0.

The test fixture is a shortened copy of the example response in cloro-dev/docs#324. It is not a recorded API response. No live call was made, because the endpoint is not deployed.

Claude-Session: https://claude.ai/code/session_01Vi9vyc4nPaECMgzccWiEMb
@rbatista191
rbatista191 merged commit 51b6117 into main Nov 29, 2026
6 checks passed
@rbatista191
rbatista191 deleted the feature/eng-46-new-endpoint-meta-ai branch November 29, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant